<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ tag pageEncoding="UTF-8"%>
<%@ attribute name="mainCodeLabel" required="true"%>
<%@ attribute name="secondCodeLabel" required="true"%>
<%@ attribute name="productId" required="true"%>
<%@ attribute name="productSpecMajors" required="true" type="java.util.List"%>
<p>${mainCodeLabel}：    
<select class="pdtype" id="selectMs_${productId}">
<c-rt:if test="${fn:length(productSpecMajors) > 1}">
<option value="请选择">请选择</option>
</c-rt:if>
<c-rt:forEach items="${productSpecMajors}" var="specObj" varStatus="status">
<option value="${specObj.mainSpecId}">${specObj.mainSpecName}</option>
</c-rt:forEach>
</select>
<br />
${secondCodeLabel}：    
<select class="pdtype" id="selectSs_${productId}"><option>请选择</option></select>
</p>